package network;

import hypeerweb.HyPeerWebSegment;

public class Temp {

	public static void main(String[] args) {
		PeerCommunicator.createPeerCommunicator(new PortNumber(49300));
		HyPeerWebSegment starter = new HyPeerWebSegmentProxy(new GlobalObjectId(
				"192.168.2.125", new PortNumber(49205), new LocalObjectId(
						-2147483648)));

		System.out.println(starter);
		HyPeerWebSegment mine = HyPeerWebSegment.getSingleton();

		for (int i = 0; i < starter.getSize(); i++) {
			mine.addNode(starter.getNode(i));
		}
		mine.addToHyPeerWeb(1, null);
		for(int i =0; i < mine.getSize();i++)
		System.out.println(mine.getNode(i));
	}
}
